package com.qianbei.user.unlogin;

import com.qianbei.common.init.GlobalConfig;
import com.qianbei.common.init.SetData;
import com.qianbei.common.init.SystemConfig;

public class UserLoginOut {

    private static UserLoginOut userLoginOut;

    public static UserLoginOut getInstance() {
        if (userLoginOut == null) {
            userLoginOut = new UserLoginOut();
        }
        return userLoginOut;
    }


    public void CleanData() {

        // 退出登录 清除数据 跳转到登录页面
        GlobalConfig.getInstance().userID = "";
        GlobalConfig.getInstance().userName = "";
        GlobalConfig.getInstance().iconURl = "";

        SetData.setLastViewId("");
        SetData.setUserID("");
        SetData.setFace("");
        SetData.setUserName("");
        SetData.setHeadImg("");
        SetData.setUserPhone("");
        SystemConfig.getInstance().setCooke("");



//		JpushManager.getIJpushManager().setAlias("");
//		JpushManager.getIJpushManager().setTag("jiemianmaster_guest_user");
//		if(out!=null){
//			out.logout();
//		}
//		HomActivity.unreadLabel.setVisibility(View.INVISIBLE);
    }


}
